package com.train.classeval.service;

import com.train.classeval.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xs
 * @since 2021-10-08
 */
public interface IRoleService extends IService<Role> {

    /**
     * 为用户添加权限接口
     * @param uid
     * @param rid
     * @return
     */
    int addRole(Integer uid,Integer rid);

    /**
     * 查看用户的角色
     * @param uid
     * @param rid
     * @return
     */
    int selectUserRole(Integer uid,Integer rid);

}
